Companion

object Companion

Extensions

CASE_INSENSITIVE_ORDER
Link copied to clipboard
expect val String.Companion.CASE_INSENSITIVE_ORDER: Comparator<String>

A Comparator that orders strings ignoring character case.

actual val String.Companion.CASE_INSENSITIVE_ORDER: Comparator<String>

A Comparator that orders strings ignoring character case.

actual val String.Companion.CASE_INSENSITIVE_ORDER: Comparator<String>
actual val String.Companion.CASE_INSENSITIVE_ORDER: Comparator<String>
format
Link copied to clipboard
inline fun String.Companion.format(format: String, vararg args: Any?): String

Uses the provided format as a format string and returns a string obtained by substituting the specified arguments, using the default locale.

@DeprecatedSinceKotlin(hiddenSince = "1.4")
inline fun String.Companion.format(locale: Locale, format: String, vararg args: Any?): String

Uses the provided format as a format string and returns a string obtained by substituting the specified arguments, using the specified locale.

@JvmName(name = "formatNullable")
inline fun String.Companion.format(locale: Locale?, format: String, vararg args: Any?): String

Uses the provided format as a format string and returns a string obtained by substituting the specified arguments, using the specified locale. If locale is null then no localization is applied.